import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    menu: [],
    pageNo: '',
    pageSize: ''
  },
  getters: {
    getMenu (state) {
      return state.menu
    },
    getPageNo (state) {
      return state.pageNo
    },
    getPageSize (state) {
      return state.pageSize
    }
  },
  mutations: {
    setMenu (state, menuList) {
      state.menu = menuList
    },
    setPageNo (state, pageNo) {
      state.pageNo = pageNo
    },
    setPageSize (state, pageSize) {
      state.pageSize = pageSize
    }
  },
  actions: {
  },
  modules: {
  }
})
